﻿using System;
using System.Web;
using ASPNETVN.PORTAL.Modules.ACTP.Components;

namespace ASPNETVN.PORTAL.Modules.ACTP.Controls
{
    public partial class TeamDetailControl : System.Web.UI.UserControl
    {
        private int _TeamID;
        public int TeamID
        {
            get
            {
                if (_TeamID == 0)
                {
                    if (HttpContext.Current != null && Request.Params["TeamID"] != null)
                        _TeamID = Int32.Parse(Request.Params["TeamID"]);
                }
                return _TeamID;
            }
            set { _TeamID = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                Team team = Team.Load(this.TeamID);
                LabelTitle.Text = team.Title;
                LabelDescription.Text = team.Description;
            }

        }
    }
}